from tkinter import *


x1 = int(input())
y1 = int(input())
k = int(input())

window=Tk()
window.title('program_7_1')
canvas = Canvas(window,width=500,height=500,bg='gray')


x2=x1+10*k
y2=y1+20*k

x3=x2
y3=y1+10*k

x4=x3+10*k
y4=y3+20*k
if x4<=500 and y4<=500:
    canvas.create_rectangle(x1,y1,x2,y2,fill="red",outline="black")
    canvas.create_rectangle(x3,y3,x4,y4,fill="red",outline="black")
else:
    canvas.create_text(250,280,text='Размер, фигуры, превышает, максимальный, размер, поля', font='Verdana 12',justify=CENTER,fill='red')
    
canvas.pack()
window.mainloop()
